package com.zw.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 目录视图
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class DirectoryVo implements Serializable {

    @Schema(description = "目录ID")
    private Long id;
    @Schema(description = "目录名称")
    private String name;
    @Schema(description = "父目录ID")
    private Long parentId;
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
    @Schema(description = "子目录集合")
    private List<DirectoryVo> children;
}
